Smush\Core\Modules\Bulk\Background_Bulk_Smush A

Total Complexity 64
Dependencies 10
Dependents 2
Total lines 363
Lines of code 225
Logical lines of code 113
Comment lines 62
Methods 35
Properties 6

Methods 35

Method Rating Maintainability Complexity Lines of code
cancel_programmatically()
A
58 10 13
start_bulk_smush_direct()
S
56 5 20
bulk_smush_start()
S
60 3 15
prepare_smush_tasks()
S
62 3 12
__construct()
S
55 2 20
is_background_enabled()
S
71 3 6
localize_background_stats()
S
64 3 9
can_use_background()
S
78 2 3
should_use_background()
S
77 2 4
get_in_process_notice()
S
74 2 5
get_mail_recipient()
S
74 2 4
get_instance()
S
71 2 6
check_ajax_referrer()
S
70 2 6
bulk_smush_cancel()
S
70 2 7
bulk_smush_get_status()
S
64 1 11
bulk_smush_get_global_stats()
S
74 1 5
get_actual_mysql_version()
S
81 1 3
get_required_mysql_version()
S
81 1 3
is_mysql_requirement_met()
S
78 1 3
get_background_process()
S
82 1 3
is_background_supported()
S
81 1 3
get_email_enabled_notice()
S
75 1 4
get_email_disabled_notice()
S
69 1 7
prepare_resmush_tasks()
S
67 1 9
prepare_error_tasks()
S
67 1 9
get_process_id()
S
81 1 3
get_revival_count()
S
81 1 3
get_failed_items()
S
81 1 3
get_processed_items()
S
81 1 3
get_total_items()
S
81 1 3
register_ajax_handler()
S
79 1 3
is_completed()
S
81 1 3
is_in_processing()
S
81 1 3
prepare_background_tasks()
S
68 1 8
is_dead()
S
81 1 3